from sys import path
path.append('..')

from treeArray import TreeArray

if __name__ == '__main__':
    ta = TreeArray([1, 2, 3, 4, 6])
    ta.append(7)
    print(ta)

    ta.pop()
    ta.pop()
    print(ta)

    print(len(ta))

    ta.add(3, 2)
    print(ta)

    ta2 = TreeArray([1, 2, 3, 6])
    print(ta == ta2)
